<template>
    <div class="PxPMUpdiv1">
        <el-dropdown style="float:right;margin-right:20px;color:black">
        <i class="el-icon-setting" style="font-size:200%;"></i>
        <el-dropdown-menu slot="dropdown" class="headerdropdown">
        <el-dropdown-item><div>用户中心</div></el-dropdown-item>
        <el-dropdown-item ><div @click="gologin">退出登陆</div></el-dropdown-item>
        </el-dropdown-menu>
        </el-dropdown>
    </div>
</template>

<script>
export default {
    name:'PxPMUp',
    methods:{
        gologin(){
            this.$message({
                message: '退出登陆成功',
                type: 'success'
            });
            this.$router.replace({name:'PxLogin'})
        },
    }
}
</script>

<style scoped>
.PxPMUpdiv1{
    margin-top: 10px;
    height: 32px;
}
</style>